<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="common/include :: header('新增预约')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
	<form class="form-horizontal m" id="form-appointment-add">
		<div class="form-group">
			<label class="col-sm-3 control-label is-required">姓名：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" name="name" >
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label is-required">邮箱：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" name="email" >
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label is-required">年龄：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" name="age" >
			</div>
		</div>
		<div class="form-group">
			是否超管：
			<select name="admin" th:with="type=${@dict.getType('sys_admin')}">
				<option value="">所有</option>
				<option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}"></option>
			</select>
		</div>
		<div class="form-group">
			是否冻结：
			<select name="status" th:with="type=${@dict.getType('sys_dongjie')}">
				<option value="">所有</option>
				<option th:each="dict : ${type}" th:text="${dict.label}" th:value="${dict.value}"></option>
			</select>
		</div>
		<div class="form-group">
			所在部门：
			<select name="deptId">
				<option value="">所有</option>
				<option th:each="d : ${departments}" th:text="${d.name}" th:value="${d.id}"></option>
			</select>
		</div>

	</form>
</div>
<th:block th:include="common/include :: footer" />
<th:block th:include="common/include :: datetimepicker" />

<script type="text/javascript">
	var prefix = ctx + "/business/employee";

	function submitHandler() {
		if ($.validate.form()) {
			$.operate.save(prefix + "/add", $('#form-appointment-add').serialize());
		}
	}

	$("#appointmentTime").datetimepicker({
		format: "yyyy-mm-dd hh:ii",
		autoclose: true
	});
</script>
</body>
</html>
